import axios from 'axios'

export const getAppName = () => {
    return new Promise((resolve, reject) => {
        const err = null
        setTimeout(() => {
            if (!err) resolve({ code: 200, data: { appName: 'newAppName' } })
            else reject('api error')
        }, 1000)
    })
}

export const getUserInfo = () => {
    return axios.get('/getUserInfo')
}